#include <fstream>
#include <cstdlib>
#include <GL/glew.h>
#include <GL/glfw.h>

/** Class that reads shader source code and compiles a shader */

#ifndef SHADER_PROVIDER_HPP
#define SHADER_PROVIDER_HPP
class ShaderProvider
{
	public:
	static bool SetGLSLVersion(const char* version);
	static const char* GetGLSLVersion();
	protected:
	GLuint CreateShader(const char* vertexSource, const char* fragmentSource);
	private:
	char* ReadFile(const char* filename, int& size);
	void PrintLog(GLuint object) const;
	static char* VERSION_STRING;
};


#endif
